package com.xxx.seckill.service;

import com.xxx.seckill.pojo.TSeckillOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xxx.seckill.pojo.TUser;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author XXX
 * @since 2023-01-04
 */
public interface TSeckillOrderService extends IService<TSeckillOrder> {

    /**
     * 获得秒杀结果
     * @param user
     * @param goodsId
     * @return
     */
    Long getResult(TUser user, Long goodsId);
}
